<link rel="stylesheet" href="<?php echo baseTheme();?>/css/contact.css" type="text/css" media="all">
<script type="text/javascript">
jQuery("#wd-form-contact").validationEngine();
$(function() {

	// $('#plp').val("");
	
	$("#device").autocomplete({
		source: "searchlookup.php",
		minLength: 2,
		select: function(event, ui) {
			$('#deviceid').val(ui.item.id);
			$('#plp').val(ui.item.plp);
			$('#autocompleteForm').attr("action", ui.item.plp);
			$('#autocompleteForm').submit();
		}
	});
	
	$["ui"]["autocomplete"].prototype["_renderItem"] = function( ul, item) {
		return $( "<li onselect='document.getElementById(\'autocompleteForm\').submit();'></li>" ) 
				.data( "item.autocomplete", item )
				.append( $( "<a></a>" ).html( item.label ) )
				.appendTo( ul );
	};

});
</script>
<div class="main">
   <div class="inside">
		<h1>Contact Us</h1>
		<table width="100%">
			<tr valign="top">
				<td>
					<h1>Contact Orange Offer Support</h1>
					<h2>24 Hour Online Support</h2>
					<h3>Customer Support</h3>
					
					<?php if(Yii::app()->user->hasFlash('contact')): ?>
					<div class="flash-success">
						<?php echo Yii::app()->user->getFlash('contact'); ?>
					</div>
					<?php else: ?>
						<b>Looking for a status update on your Orange Offer?<br/> 
						Please visit the <?php echo CHtml::link('My Offer',Yii::app()->createUrl('/offers'),array('class'=>$currentOffer));?> tracking feature.</b><br/><br/>
						Still have questions? Please email us at:<a href="mailto:support@orangeoffer.com" style="color:#E6740D;font-size:18px"><b>support@orangeoffer.com</b></a> <br/>
						Or quick contact with us by form bellow:<br/>
						
						<div class="wd-content-contact">
							<?php $form=$this->beginWidget('CActiveForm', array("id"=>"wd-form-login")); ?>
								<?php echo $form->errorSummary($model); ?>
								<fieldset>
									<div class="wd-input">
										<?php echo $form->labelEx($model,'name'); ?>
										<?php echo $form->textField($model,'name'); ?>
									</div>
									<div class="wd-input">
										<?php echo $form->labelEx($model,'email'); ?>
										<?php echo $form->textField($model,'email'); ?>
									</div>
									<div class="wd-input">
										<?php echo $form->labelEx($model,'phone'); ?>
										<?php echo $form->textField($model,'phone'); ?>
									</div>
									<div class="wd-input">
										<?php echo $form->labelEx($model,'address'); ?>
										<?php echo $form->textField($model,'address'); ?>
									</div>
									<div class="wd-input">
										<?php echo $form->labelEx($model,'verifyCode'); ?>
										<div>
										<?php $this->widget('CCaptcha'); ?>
										<?php echo $form->textField($model,'verifyCode'); ?>
										</div>
										<!--div class="hint">Please enter the letters as they are shown in the image above.
										<br/>Letters are not case-sensitive.</div-->
									</div>
									<div class="wd-input">
										<?php echo $form->labelEx($model,'subject'); ?>
										<?php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>128)); ?>
									</div>
									<div class="wd-input wd-area">
										<?php echo $form->labelEx($model,'body'); ?>
										<?php echo $form->textArea($model,'body',array('rows'=>6, 'cols'=>50)); ?>
									</div>
									<div class="wd-submit">
										<?php echo CHtml::submitButton('Submit'); ?>
									</div>
								</fieldset>
							<?php $this->endWidget(); ?>
						</div>
					<?php endif; ?>
				</td>
				<td>&nbsp;</td>
				<td align="center">
					<h3>Orange Offer - Cash For Used Cell Phones & Tablets</h3>
					<img src="<?php echo baseTheme();?>/images/chicago.jpg" alt="Cash For Cell Phones"  height="301" width="450" style="border:solid 2px orange" /><br/>
					<b>A Chicago Electronics Company</b><br/><br/>
					<div style="text-align: left;">
						<h2>Media Inqueries</h2>
						<b>For news outlets looking to publish articles <br/> on Orange Offer</b>, please email us at:<br/><br/>
						<a href="mailto:media@orangeoffer.com" style="color:#E6740D;font-size:18px"><b>media@orangeoffer.com</b></a><br/>
						<h2>Frequently Asked Questions</h2>
						<b>Checkout our <a href="how-it-works.php"><u>How it Works</u></a> section for answers to FAQ's.
						<br/>
						<b>Read more <a href="about.php"><u>About Orange Offer</u></a>. 
					</div>
				</td>
			</tr>
		</table>
	</div>	
	<div style="clear: both"></div> 
</div>